/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('investmentuser', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
    },
    usernumber: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    realname: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
    },
    idcard: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    sex: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
    },
    bank: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    referrer: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    sock: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
    },
    registration: {
      type: DataTypes.DATE,
      allowNull: true,
    },
    logintime: {
      type: DataTypes.DATE,
      allowNull: true,
    },
    usersource: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
    },
    bankname: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    subbranchname: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    remarks: {
      type: DataTypes.STRING(64),
      allowNull: true,
    },
    password: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
    trpassword: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
    salt: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
    name: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
    phone: {
      type: DataTypes.STRING(255),
      allowNull: true,
    },
  }, {
    tableName: 'investmentuser',
  });

  Model.associate = function() {

  };

  return Model;
};
